#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include<QSqlTableModel>
#include<QTimer>
#include "servermanager.h"
#include "dbhelper.h"
#include "clienthandelr.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    serverManager* server;
    QSqlTableModel *my_model=nullptr;
    clientHandelr *client_handelr=nullptr;
    QTimer *list_up_timer=nullptr;
    void onl_user_window_list_init();
protected slots:
    void onl_window_update_kk();
    void on_newClient(clientHandelr* handler);
    void on_newOnlUser(QString name);
    void on_OnlUserOff(QString name);
    //会议相关
    void onclcFile();
    void onsetFile(QString file);
    void onsetVideoList(QString listt);

};
#endif // MAINWINDOW_H
